<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Like
 * @copyright  Copyright Hire-Experts LLC
 * @license    http://www.hire-experts.com
 * @version    $Id: manifest.php 2010-09-07 16:05 idris $
 * @author     Idris
 */

/**
 * @category   Application_Extensions
 * @package    Like
 * @copyright  Copyright Hire-Experts LLC
 * @license    http://www.hire-experts.com
 */
 
return array(
  // Package -------------------------------------------------------------------
  'package' => array(
    'type' => 'module',
    'name' => 'like',
    'version' => '4.0.1',
    'path' => 'application/modules/Like',
    'meta' => array(
      'title' => 'Like',
      'description' => 'Like Plugin',
      'author' => 'Hire-Experts LLC',
    ),
    'callback' => array(
	     'path' => 'application/modules/Like/settings/install.php',
	     'class' => 'Like_Installer'
    ),
	  'actions' => array(
       'install',
       'upgrade',
       'refresh',
       'enable',
       'disable',
     ),
    'directories' => array(
      'application/modules/Like',
    ),
    'files' => array(
      'application/languages/en/like.csv',
    ),
  ),
  // Hooks ---------------------------------------------------------------------
  'hooks' => array(
    array(
      'event' => 'onUserDeleteBefore',
      'resource' => 'Like_Plugin_Core'
    ),
    array(
      'event' => 'onRenderLayoutDefault',
      'resource' => 'Like_Plugin_Core',
    )
  ),
	// Routes ---------------------------------------------------------------------
	'routes' => array(
  	'like_default' => array(
      'route' => 'like/:action/*',
      'defaults' => array(
        'module' => 'like',
        'controller' => 'index',
        'action' => 'index'
      )
    ),
    'like_club' => array(
      'route' => 'like-club/:action/*',
      'defaults' => array(
        'module' => 'like',
        'controller' => 'club',
        'action' => 'index'
      )
    ),
		'like_box' => array(
      'route' => 'like-box/:object/:object_id',
      'defaults' => array(
        'module' => 'like',
        'controller' => 'club',
        'action' => 'like-box'
      )
    ),
    'like_button' => array(
      'route' => 'like-button/:object/:object_id',
      'defaults' => array(
        'module' => 'like',
        'controller' => 'club',
        'action' => 'like-button'
      )
    ),
    'like_remote' => array(
      'route' => 'like-remote/:action/:object/:object_id/*',
      'defaults' => array(
        'module' => 'like',
        'controller' => 'remote',
        'action' => 'like'
      )
    ),
    'like_login' => array(
      'route' => 'like-login/:action/*',
      'defaults' => array(
        'module' => 'like',
        'controller' => 'auth',
        'action' => 'index'
      )
    ),
    'admin_like_level' => array(
      'route' => 'like/level/*',
      'defaults' => array(
        'module' => 'like',
        'controller' => 'admin-level',
        'action' => 'index'
      )
    ),    
	),
	// Items ---------------------------------------------------------------------
	'items' => array(
		'like_club',
		'like'
	),
);